<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			"use strict"
			
			let obj = {username: "kobe"}
			let obj2 = Object.assign(obj)
			console.log(obj2)
			obj.username = "wade"
			console.log(obj)
			
			let arr = [1, 3, {username: "kobe"}]
			let arr2 = arr.concat()
			console.log("arr2", arr2)
			arr[1] = true
			arr[2].username = "wade"
			console.log("arr", arr)
			console.log("arr2", arr2)
			
			let arr3 = [1, 3, {username: "kobe"}]
			let arr4 = arr3.slice()
			arr3[2].username = "wade"
			console.log("arr3", arr3)
			console.log("arr4", arr4)
			
			let arr5 = [1, 3, {username: "kobe"}]
			let arr6 = JSON.parse(JSON.stringify(arr5))
			arr5[2].username = "wade"
			console.log("arr5", arr5)
			console.log("arr6", arr6)
		</script>
	</body>
</html>
